<template>
  <div>
    <h1>公开活动列表</h1>
    <ul>
      <li v-for="activity in activities" :key="activity.id">
        <router-link :to="`/public-activities/${activity.id}`">
          {{ activity.title }} - {{ activity.date }}
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script>
import activities from '@/views/activities.js';

export default {
  data() {
    return {
      activities,
    };
  },
};
</script>